<div class="layuimini-main" id="admin-search">

    <form class="layui-form layui-form-pane" lay-filter="UserLog_Detail_div_filter">

        <div class="layui-form-item">
            <label class="layui-form-label">操作员名称</label>
            <div class="layui-input-block">
                <input type="text" name="userName" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">操作类型</label>
            <div class="layui-input-block">
                <input type="text" name="logType" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">操作时间</label>
            <div class="layui-input-block">
                <input type="text" name="logTime" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">设备信息</label>
            <div class="layui-input-block">
                <input type="text" name="logDrive" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">人员信息</label>
            <div class="layui-input-block">
                <input type="text" name="logPeople" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">内容</label>
            <div class="layui-input-block">
                <textarea name="logDetail" class="layui-textarea" style="width:100%; height:220px"></textarea>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-inline">
                <button type="submit" class="layui-btn layui-btn-primary" id="btnsearchclose"><i class="layui-icon">&#x1006;</i> 关闭</button>
            </div>
        </div>
    </form>

</div>
<script>

    layui.use(['form',  'faceAPI'], function () {
        var form = layui.form,
            layer = layui.layer,
            $ = layui.$;
        var faceAPI = layui.faceAPI;
        /**
         * 初始化表单，要加上，不然刷新部分组件可能会不加载
         */
        form.render();

        // 当前弹出层，防止ID被覆盖
        var parentIndex = layer.index;

        if (faceAPI.UserLogDetail != null) {
            form.val("UserLog_Detail_div_filter", faceAPI.UserLogDetail);
        } 

        $('#btnsearchclose').on('click', function () {
            layer.close(parentIndex);
            return false;
        });


    });

</script>